package bar.dark.lee.stats;

import android.os.Parcel;
import android.os.Parcelable;

public class StatsCategoryData implements Parcelable
{
	private String category;
	private String money;
	private String moneyKind;
	private String percent;
	
	public StatsCategoryData(){};
	
	public StatsCategoryData(Parcel source)
	{
		this.category = source.readString();
		this.money = source.readString();
		this.moneyKind = source.readString();
		this.percent = source.readString();
	}
	
	@Override
	public int describeContents()
	{
		return 0;
	}
	@Override
	public void writeToParcel(Parcel dest, int flags)
	{
		dest.writeString(this.getCategory());
		dest.writeString(this.getMoney());
		dest.writeString(this.getMoneyKind());
		dest.writeString(this.getPercent());
	}
	
	public static Parcelable.Creator<StatsCategoryData> CREATOR = new Creator<StatsCategoryData>()
	{
		@Override
		public StatsCategoryData[] newArray(int size)
		{
			return new StatsCategoryData[size];
		}
		
		@Override
		public StatsCategoryData createFromParcel(Parcel source)
		{
			return new StatsCategoryData(source);
		}
	};
	
	public String getCategory()
	{
		return category;
	}
	public void setCategory(String category)
	{
		this.category = category;
	}
	public String getMoney()
	{
		return money;
	}
	public void setMoney(String money)
	{
		this.money = money;
	}

	public String getMoneyKind()
	{
		return moneyKind;
	}

	public void setMoneyKind(String moneyKind)
	{
		this.moneyKind = moneyKind;
	}

	public String getPercent()
	{
		return percent;
	}

	public void setPercent(String percent)
	{
		this.percent = percent;
	}
}
